package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IWgtsTaskDetailsActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.TaskDetailEntity;

/*
 *
 *
 */public class WgtsTaskDetailsActivityModel implements IWgtsTaskDetailsActivityModel {
     private NetService netService;

    public WgtsTaskDetailsActivityModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initDate(Integer taskId, HttpResultSubscriber<TaskDetailEntity> subscriber) {
        netService.taskDetails(taskId, subscriber);
    }

    @Override
    public void joinTaskDetails(Integer userTaskId, HttpResultSubscriber<TaskDetailEntity> subscriber) {
        netService.joinTaskDetails(userTaskId, subscriber);
    }

    @Override
    public void issueTask(Integer taskId, String taskCode, String taskUrl, HttpResultSubscriber<Integer> subscriber) {
        netService.issueTask(taskId, taskCode, taskUrl, subscriber);
    }

    @Override
    public void vertifyTask(Integer userTaskId, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.vertifyTask(userTaskId, subscriber);
    }
}
